package com.songhq.zonghe.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.songhq.zonghe.work.MyRunnable;
import com.songhq.zonghe.work.WorkThreadPoolExcutor;

@Service
public class WorkService {
	
	@Autowired
	private WorkThreadPoolExcutor  excutor;
	
	
	public  void  doString(String name){
		MyRunnable myRunnable = new MyRunnable(name);
		excutor.doWork(myRunnable);
	}

}
